package netty.io.demo.RPC.inter.impl;

import netty.io.demo.RPC.entity.Animal;
import netty.io.demo.RPC.entity.Person;
import netty.io.demo.RPC.inter.InfoQuery;

/**
 * 信息 query 实现类
 *
 * @author lihh
 */
public class InfoQueryImpl implements InfoQuery {
  @Override
  public Person queryPerson(String id) {
    return Person.builder().id(id).name("person").build();
  }
  
  @Override
  public Animal queryAnimal(String id) {
    return Animal.builder().id(id).name("animal").build();
  }
}
